#![no_std]
#![no_main]

use core::panic::PanicInfo;
use x86_64::instructions::hlt;
use bootloader_api::{entry_point, BootInfo};
use bootloader_api::config::{BootloaderConfig, Mapping};

#[panic_handler]
fn panic_handler(_info: &PanicInfo) -> ! {
    loop { hlt(); }
}

mod bootlogger;

use bootlogger::BOOT_LOGGER;

fn kernel_main(boot_info: &'static mut BootInfo) -> ! {

    BOOT_LOGGER.init_from(boot_info);

    loop { hlt(); }
}

entry_point!(kernel_main);
